package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xjy
 * @since 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_vending_machine")
@ApiModel(value="TbVendingMachine对象", description="")
public class VendingMachine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "售货机类型")
    @TableField("vm_type")
    private Integer vmType;

    @ApiModelProperty(value = "售货机软编号")
    @TableField("inner_code")
    private String innerCode;

    @ApiModelProperty(value = "点位Id")
    @TableField("node_id")
    private Long nodeId;

    @ApiModelProperty(value = "售货机状态，0:未投放;1-运营;3-撤机")
    @TableField("vm_status")
    private Integer vmStatus;

    @ApiModelProperty(value = "上次补货时间")
    @TableField("last_supply_time")
    private LocalDateTime lastSupplyTime;

    @ApiModelProperty(value = "所在城市ID")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "区域id")
    @TableField("area_id")
    private Integer areaId;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Long createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "商圈Id")
    @TableField("business_id")
    private Integer businessId;

    @ApiModelProperty(value = "所属区域Id")
    @TableField("region_id")
    private Long regionId;

    @ApiModelProperty(value = "点位主Id")
    @TableField("owner_id")
    private Integer ownerId;

    @ApiModelProperty(value = "所属合作商名称")
    @TableField("owner_name")
    private String ownerName;

    @ApiModelProperty(value = "客户端连接Id,做emq认证用")
    @TableField("client_id")
    private String clientId;

    @ApiModelProperty(value = "经度")
    @TableField("longitudes")
    private Double longitudes;

    @ApiModelProperty(value = "维度")
    @TableField("latitude")
    private Double latitude;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
